JS implements the last digit when the ID card number is 15 to 18 charactersAlgorithm
According to the provisions on the national identity number in the National Standard GB 11643-1999 of the People's Republic of China, the national identity number
Now we use all 18-digit ID card numbers, and the previous 15-digit ID card numbers. How can we convert a 15-digit ID card number to an 18-digit ID card number?
1. First, after 6th digits of the 15-digit ID card, "19" is changed to 17 digits, that is,
ID number 15, 18 digits.
ID 18-bit authentication
The 18-digit ID standard is clearly stipulated in the gb11643-1999 "citizenship number", which was implemented by the National Quality and Technical Supervision Bureau on July 1, 1999. Gb11643-1999
Function: Upgrade the ID card number of 15 to 18 characters (according to GB 11643-1999)
Parameter: original number (15 digits)
Return Value: the 18-digit number after the upgrade.
Usage: = idcode (A1) (assuming that A1 contains the original
This article mainly introduces how to generate a unique number in PHP. In this article, convert the hexadecimal value to 36 to obtain more than 60 million unique numbers that are not repeated, with the number of digits being 10 digits, if you need a
This article mainly introduces how to generate a unique number in PHP. in this article, convert the hexadecimal value to 36 to obtain more than 60 million unique numbers that are not repeated, with the number of digits being 10 digits, if you need a
When we want to numbers a large number of data, there is a limit on the number of digits, such as a five-digit license plate number, a ten-digit license number, order serial number, and a short URL, we can use the 36-digit system to calculate
Problem DescriptionWater problemInputEnter a 3-digit number (the title contains multiple sets of test data)OutputSeparates the 3-digit hundred, 10-bit, and single-digit, inverted output (one row of test data per group)Sample Input250Sample
Because I needed to perform the escalation, verification, and query of the 15-digit old ID card number, and did not find any ready-made functions, I wrote a simple process and hoped to help my friends.This function has a single function and can only
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.